import { createWebHashHistory, createRouter } from "vue-router";

const ThreeJS = () => import("../views/Three.js/xn-demo-1.vue");
const CesiumJS = () => import("../views/Cesium.js/index.vue");
const Weather = () => import("../views/Weather/index.vue");
const GeoJson = () => import("../views/GeoJson/index.vue");

const routes = [
    { path: "/", redirect: "/ThreeJS" },
    { path: "/ThreeJS", component: ThreeJS },
    { path: "/CesiumJS", component: CesiumJS },
    { path: "/Weather", component: Weather },
    { path: "/GeoJson", component: GeoJson },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;
